﻿using System;

class ShowPositiveOrNegativeSign

            // Write a program that shows the sign (+ or -) of the product of three real numbers without calculating it. Use a sequence of if statements.

{

    static void Main()
    {
        Console.WriteLine("Enter three real numbers: ");
        double a = double.Parse(Console.ReadLine());
        double b = double.Parse(Console.ReadLine());
        double c = double.Parse(Console.ReadLine());
        double count = 0;
        if (a == 0 || b == 0 || c == 0)
            {
                Console.WriteLine("The product is 0 hence there is no sign!");
            }
        else
            {
                if (a < 0)
                {
                    count++;
                }
                if (b < 0)
                {
                    count++;
                }
                if (c < 0)
                {
                 count++;
                }
            }
        if (count == 1 || count == 3)
            {
                Console.WriteLine("The sign of the product is '-' negative ");
            }
        else
            {
                Console.WriteLine("The sign of the product is '+' positive ");
            }

    }
}
